#include <stdio.h>

#include "array_lib.h"

#define _sizeof(arr) ((size_t)(&arr + 1) - (size_t)(&arr))

int main()
{
    int ret = 0;
    unsigned char *L = NULL;
    int size = 10;
    size_t len;
    int arr[5];

    ret = ListIsEmpty(L);
    printf("ret1 = %d\n", ret);
    InitList(&L, size);
    ret = ListIsEmpty(L);
    printf("ret2 = %d\n", ret);
    printf("p1 = %p\n", &arr);
    printf("p2 = %p\n", &arr + 1);
    len = _sizeof(arr);
    //len = 0x7ffd258c5ec0 - 0x7ffd258c5ed4;
    printf("p2 - p1 = %ld\n", len);
    printf("End!\n");
    return 0;
}
